<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:oc="http://java.sun.com/jsf/composite/owncomponents"
	xmlns:p="http://primefaces.org/ui">
<h:body>
	<ui:composition template="template/template.xhtml">
		<ui:define name="content">
			<f:view>
				<p:panel>
						<h1>Game Update</h1>
						
						<h:form>
							
					    <h:panelGrid id="gameConfig" columns="4"  rowClasses="height50">
					    	
					    	<h:outputText value="Name"></h:outputText>
					        <p:inputText id="name" value="#{adminMBean.gameName}" required="true">
					        	<f:validateLength minimum="1" maximum="50" />
					        </p:inputText>
					        <p></p>
					        <oc:fieldhelp helptext="Setting the name for the Game." show="true"/>
					        
					    </h:panelGrid>
					    
					    <p:commandButton action="#{adminMBean.actionUpdateGameName()}" id="saveButton" value="Save" update=":messages" icon="ui-icon-disk" title="Icon Only" />
						
						<p:commandButton action="#{adminMBean.actionAbortGame()}" id="abortButton" value="Abort" update=":messages" icon="ui-icon-circle-close" title="Icon Only" immediate="true"/>
						
						
						</h:form>
					</p:panel>
			</f:view>
		</ui:define>
	</ui:composition>
</h:body>
</html>